<div id="dialog-form-category" title="类别管理" style="display: none">
<p class="validateTips">请输入类别名称.</p>

<form>
<fieldset><label for="name">类别名称</label> <input type="text"
	name="supplier_category_name" id="supplier_category_name"
	class="text ui-widget-content ui-corner-all" /></fieldset>
</form>
</div>


<div id="category-contain" class="ui-widget">
<table id="category" class="ui-widget ui-widget-content">
	<thead>
		<tr class="ui-widget-header ">
			<th><input type="checkbox" onclick="changeSelectAll(this,'checkKey');"></th>
			<th>类别名称</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
	<?php
	foreach ($result as $item) {
		echo '<tr><td><input type="checkbox" class="checkKey" key="'.$item->id.'"/></td>';
		echo '<td>';
		echo $item->name;
		echo '</td>';
		echo '<td><button class="editBtn" cate="'.$item->id.'" cateName="'.$item->name.'">修改</button>&nbsp;';
		echo '<button class="delBtn" cate="'.$item->id.'">删除</button></td>';
		echo '</tr>';
	}
	?>
	</tbody>
</table>
</div>
<button id="create-category">添加类别</button>
<button id="delete-category">删除选中类别</button>
